import Script from 'next/script';
export default function LoadScript (){
    return (
        <Script 
            src="https://hm.baidu.com/hm.js?3c0601b415a8c6ad4d8d82039a8c28bb"
            strategy="lazyOnload"
            onLoad={() => {
                // 今日头条
                (function(r,d,s){r._tt_config=true;var _baq=(r._baq=r._baq||[]);_baq.methods=["track","off","on"];
                _baq.factory=function(method){return function(){var args=Array.prototype.slice.call(arguments);
                args.unshift(method);_baq.push(args);return _baq}};for(var i=0;i<_baq.methods.length;i++){
                var key=_baq.methods[i];_baq[key]=_baq.factory(key)}_baq.load=function(){
                var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s);
                js.src="https://analytics.oceanengine.com/api/v2/js/sdk";fjs.parentNode.insertBefore(js,fjs)};
                _baq.load();if(_baq.invoked){return}_baq.invoked=true;_baq.track("pageview")})(window,document,"script");
            }}
        />
    )
}